package com.spzx.product.api.domain;

import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serial;


/**
* 分类品牌
* @TableName brand
*/
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "品牌")
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class Brand extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
    * 品牌名称
    */
    @Schema(description = "品牌名称")
    @NotBlank(message = "品牌名称不能为空")
    @Size(min = 0,max = 64,message = "品牌名称长度不能超过64个字符")
    private String name;
    /**
     * 品牌图标
     */
    @Schema(description = "品牌图标")
    @NotBlank(message = "品牌图标不能为空")
    @Size(min = 0,max = 200,message = "品牌图标长度不能超过200个字符")
    private String logo;

}
